package com.example.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("sys_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1873207647780219543L;
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    private String username;
    private String password;
    private String phone;
    private String role;
    @TableField(exist = false)
    private String roleName;
    private String openId;
    private String createTime;
    @TableField(exist = false)
    private String token;
    private String nickname;
    private String avatar;
}
